package com.boot.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Wuxiang on 2017/10/16.
 * 每访问一次  http://localhost:8080/hello
 *
 * http://localhost:8080/metrics  中的    "counter.status.200.hello"  就会加一
 */
@RestController
public class HelloController {

    @RequestMapping("/hello")
    public String index() {
        return "hello world";
    }
}
